﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="~/RaoVat/DanhMucChinh.aspx.cs" Inherits="DanhMucChinh" MasterPageFile="~/Masterpage/Sub_NoRight.Master" %>
<%@ Register src="~/UserControl/DanhSachTinRaoVatTheoList.ascx" TagName="danhsach" TagPrefix="uc" %>
<asp:Content ContentPlaceHolderID="MainContent" id="maincontent" runat="Server">
    


    

    <div class="newsbox_noleft">
    <div class="newsbox_noleft_header"><h4>DANH SÁCH DANH MỤC CON</h4></div>
    <div class="newsbox_noleft_content">

                       <asp:GridView ID="GridView1" runat="server" CellPadding="3" 
                        ForeColor="White"  AutoGenerateColumns="False"
                        GridLines="None" AllowPaging="True" 

                        onrowdatabound="GridView1_RowDataBound" PageSize="5" Width="719px" 

                           EnableModelValidation="True" 
                           onpageindexchanging="GridView1_PageIndexChanging" Height="130px" 
                           ShowHeader="False">
                        <RowStyle BackColor="White" Width="45px" Font-Bold="True" HorizontalAlign="Justify" 
                               VerticalAlign="Middle" />
                        <Columns>                        
                            <asp:TemplateField HeaderText="Danh Sách Danh Mục Con">
                             <ItemTemplate>  
                             
                                        <div class="newsbox_noleft_header"><h4> <asp:HyperLink ID="hplTenDanhMucCon" runat="server"></asp:HyperLink></h4></div>                   
                                     
                                  
                                                                                        
                             </ItemTemplate>
                            </asp:TemplateField>                                                  
                        </Columns>
                        <FooterStyle BackColor="White" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" 
                               Width="50px" />
                           <EmptyDataTemplate>
                               <asp:Label ID="Label30" runat="server" Text="Không tìm thấy dữ liệu liên quan"></asp:Label>
                           </EmptyDataTemplate>
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#CCCCCC" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                    </asp:Panel>
                    </div>
                    
                                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                        ConnectionString="<%$ ConnectionStrings:RAOVATConnectionString %>" 
                                        SelectCommand="SELECT [TenDanhMucCon] FROM [DANH_MUC_CON] WHERE (([Deleted] = @Deleted) AND ([MaDanhMucChinh] = @MaDanhMucChinh))">
                                        <SelectParameters>
                                            <asp:Parameter DefaultValue="false" Name="Deleted" Type="Boolean" />
                                            <asp:QueryStringParameter DefaultValue="0" Name="MaDanhMucChinh" 
                                                QueryStringField="id" Type="Int32" />
                                        </SelectParameters>
                                    </asp:SqlDataSource>
                    
    </div>
 
    
<div class="newsbox_noleft">
    <div class="newsbox_noleft_header"><h4>CHI TIẾT</h4></div>
    <div class="newsbox_noleft_content">
    <uc:danhsach ID="danhsach" runat="Server" WidthGridView="700" 
            ShowAutoUpColumn="False" Ten="Danh sách thuộc danh mục chính" />
    </div>
    </div>

   
    

</asp:Content>
